Skip to content

WESTMIDLANDS|MAY-2025|SARA TAHIR|Sprint 2/coursework #565

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

SaraTahir28
Copy link

Learners, PR Template

Self checklist

  • I have committed my files one by one, on purpose, and for a reason
  • I have titled my PR with REGION | COHORT_NAME | FIRST_NAME LAST_NAME | PROJ_NAME
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

Updated all functions to meet criteria
Wrote tests to see if functions are working correctly
All tests are passing.

Questions

Ask any questions you have for your reviewer.

@SaraTahir28 SaraTahir28 added the Needs Review Participant to add when requesting review label Jul 9, 2025
@LonMcGregor LonMcGregor added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Jul 17, 2025
Copy link

@LonMcGregor LonMcGregor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, really good work on this sprint. You've written a lot of really good code, tests, and analysis. I just have 2 small comments within the files for you to have a look at.

module.exports = createLookup;

/*const pair = [['US','USD'],['CA','CAD']]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't a major problem here, but remember in a more complex git project not to commit lots of comments of unused code like this.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noted, I will make sure I dont make it a practice.

if (queryString.startsWith("?")) { // Remove "?" if present at start
queryString = queryString.substring(1);
}

if (queryString.length === 0) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given you are checking for empty strings in the later for loop, do you need to also check for an empty string here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made the change. You are right, The code would have worked just fine as I am checking again for empty strings later.

@LonMcGregor LonMcGregor added Reviewed Volunteer to add when completing a review and removed Needs Review Participant to add when requesting review Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Jul 17, 2025
@SaraTahir28 SaraTahir28 added the Needs Review Participant to add when requesting review label Jul 17, 2025
@LonMcGregor
Copy link

Great work on this. You can close this sprint now.

@LonMcGregor LonMcGregor added Complete Volunteer to add when work is complete and review comments have been addressed and removed Needs Review Participant to add when requesting review Reviewed Volunteer to add when completing a review labels Jul 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Complete Volunteer to add when work is complete and review comments have been addressed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants